import * as React from 'react';
export interface ButtonProps {
  className?: string; // 自定义类名
  style?: React.CSSProperties; // 自定义样式
  children?: React.ReactNode;
  onClick?: React.EventHandler<React.MouseEvent<HTMLElement>>;
}
export const Button: React.FC<ButtonProps> = (props) => {
  const { style, className, children, onClick, ...rest } = props;
  const className2Use = 'custom-button';
  return (
    <button className={className2Use} onClick={onClick} {...rest}>
      {children}
    </button>
  );
};

Button.displayName = 'Button';
